#include "bedroom.h"
#include "ui_bedroom.h"
   // #include <QMainWindow>
BedRoom::BedRoom(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::BedRoom)
{
    ui->setupUi(this);
//    QObject::connect(ui->BedRefresh, SIGNAL(clicked()),
//                     this, SIGNAL(bedrefresh()));

       // ui->fan->setText(QString::fromLocal8Bit("系统设置"));

    QObject::connect(ui->light, SIGNAL(clicked()),
                       this, SIGNAL(bedlight()));


    QObject::connect(ui->airtemp, SIGNAL(valueChanged(int)),
                       this, SIGNAL(bedairtemp(int)));

    QObject::connect(ui->airswitch, SIGNAL(clicked()),
                       this, SIGNAL(bedairswitch()));
    QObject::connect(ui->temperature, SIGNAL(clicked()),
                       this, SIGNAL(bedtemperature()));
    QObject::connect(ui->humidity, SIGNAL(clicked()),
                       this, SIGNAL(bedhumidity()));


 }

BedRoom::~BedRoom()
{
    delete ui;
}

